home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / python2.4 / test / test_codecmaps_cn.pyo (.txt) < prev    next >
Python Compiled Bytecode  |  2005-10-18  |  1KB  |  30 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.4)
  3.  
  4. from test import test_support
  5. from test import test_multibytecodec_support
  6. import unittest
  7.  
  8. class TestGB2312Map(test_multibytecodec_support.TestBase_Mapping, unittest.TestCase):
  9.     encoding = 'gb2312'
  10.     mapfilename = 'EUC-CN.TXT'
  11.     mapfileurl = 'http://people.freebsd.org/~perky/i18n/EUC-CN.TXT'
  12.  
  13.  
  14. class TestGBKMap(test_multibytecodec_support.TestBase_Mapping, unittest.TestCase):
  15.     encoding = 'gbk'
  16.     mapfilename = 'CP936.TXT'
  17.     mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP936.TXT'
  18.  
  19.  
  20. def test_main():
  21.     suite = unittest.TestSuite()
  22.     suite.addTest(unittest.makeSuite(TestGB2312Map))
  23.     suite.addTest(unittest.makeSuite(TestGBKMap))
  24.     test_support.run_suite(suite)
  25.  
  26. test_multibytecodec_support.register_skip_expected(TestGB2312Map, TestGBKMap)
  27. if __name__ == '__main__':
  28.     test_main()
  29.  
  30.